package org.example.constant;

public enum RoleEnum {
    Admin(1,"管理员","admin"),
    User(2,"普通用户","user"),
    Plus(3,"plus会员","plus");

    private int roleId;
    private String name;
    private String key;
    RoleEnum(int roleId, String name, String key){
        this.roleId = roleId;
        this.name = name;
        this.key = key;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
